package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Student;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface StudentService {

    PageInfo<Student> getAll(int page,int size);

    @Transactional(readOnly = false)
    boolean save(Student stu);

    @Transactional(readOnly = false)
    boolean delete(Integer uuid);

    @Transactional(readOnly = false)
    boolean update(Student stu);

    Student get(Integer uuid);

    Student login(String name,Integer age);

}
